/**
  **************************************************************************
  * @file     state_led.h
  * @brief    state led
  **************************************************************************
  *
  *
  **************************************************************************
  * 
  */
#ifndef __STATE_LED_H
#define __STATE_LED_H

#define STATE_LED_PORT	GPIOA
#define STATE_LED_PIN	GPIO_PINS_0
#define STATE_LED_CLK	CRM_GPIOA_PERIPH_CLOCK

#define STATE_LED_ON()		{ STATE_LED_PORT->clr = STATE_LED_PIN; } 	// 0
#define STATE_LED_OFF()		{ STATE_LED_PORT->odt |= STATE_LED_PIN; } 	// 1
#define STATE_LED_TOGGLE()	{ STATE_LED_PORT->odt ^= STATE_LED_PIN; } 	// 0 or 1

void state_led_init(void);
#endif /* __STATE_LED_H */

